import request from '@/utils/request'

// 查询用户金额变化列表
export function listAmountLog(query) {
  return request({
    url: '/wx/amountLog/list',
    method: 'get',
    params: query
  })
}

// 查询用户金额变化详细
export function getAmountLog(id) {
  return request({
    url: '/wx/amountLog/' + id,
    method: 'get'
  })
}

// 新增用户金额变化
export function addAmountLog(data) {
  return request({
    url: '/wx/amountLog',
    method: 'post',
    data: data
  })
}

// 修改用户金额变化
export function updateAmountLog(data) {
  return request({
    url: '/wx/amountLog',
    method: 'put',
    data: data
  })
}

// 删除用户金额变化
export function delAmountLog(id) {
  return request({
    url: '/wx/amountLog/' + id,
    method: 'delete'
  })
}

// 导出用户金额变化
export function exportAmountLog(query) {
  return request({
    url: '/wx/amountLog/export',
    method: 'get',
    params: query
  })
}